//
//  CJLog.h
//  CJPack
//
//  Created by 陈警卫 on 2024-05-31.
//

#import <Foundation/Foundation.h>

#define CJLog(format, args...) do { \
NSString *message = [NSString stringWithFormat:format, ##args]; \
[CJLog logWithFilename:__FILE_NAME__ func:_cmd linenum:__LINE__ message:message]; \
} while(0)

NS_ASSUME_NONNULL_BEGIN

@interface CJLog : NSObject

+ (void)logWithFilename:(const char *)filename func:(SEL)func linenum:(NSUInteger)linenum format:(NSString *)format, ...;

+ (void)logWithFilename:(const char *)filename func:(SEL)func linenum:(NSUInteger)linenum message:(NSString *)message;

@end

NS_ASSUME_NONNULL_END
